import { request } from '../request/request.js'

// 获取用户订单
export const getOrders = (OrderForm) =>{
	return request.post(`/ownOrders`,OrderForm)
}

// 获取用户订单详情
export const getOrdersDetail = (OrderId) =>{
	return request.get(`/orderDetail?id=${OrderId}`)
}

// 申请退款 
export const postRefund = (RefundForm) =>{
	return request.put(`/applyRefund`,RefundForm)
}

// 确认订单
export const putOrderConfirm = (OrderConfirmForm) =>{
	return request.put(`/orderConfirm`,OrderConfirmForm)
}